package com.tiancheng.trade.settlement.vo.settlement.admin;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.tiancheng.trade.settlement.model.settlement.PropertyInfo;
import lombok.Data;

@Data
public class PropertyInfoVO extends PropertyInfo {

    @JsonProperty("current_page")
    private Integer currentPage;

    @JsonProperty("page_size")
    private Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize) {
            pageSize = 10;
        }
        return pageSize;
    }
}
